package cn.edu.jsu.zjj.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据表
 * </p>
 *
 * @author fyt
 * @since 2024-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_data")
public class SysData implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据表ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 资料id
     */
    private Long docuId;

    /**
     * JSON数据
     */
    private String data;

    /**
     * 创建用户
     */
    @ApiModelProperty("创建用户")
    private Long userId;

    /**
     * 创建用户
     */
    @ApiModelProperty("创建用户")
    private String userName;

    /**
     * 附件地址
     */
    @ApiModelProperty("附件地址")
    private String fileUrl;

    /**
     * 附件名称
     */
    @ApiModelProperty("附件名称")
    private String fileName;

    @ApiModelProperty("创建时间")

    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


    @ApiModelProperty(value = "删除标记")
    @TableLogic
    @TableField(value = "is_delete")
    private Integer isDelete;

}
